const dp = new DPlayer({
    container: document.getElementById('dplayer'),
    video: {
        url: $('.li')[0].innerText + '.mp4',
        type: 'mp4',
    },
    hotkey: true,
});


$('.li').click(function(){
    $("#title").text($(this).text())
    $(".li").removeClass("active")
    $(this).addClass("active")
    dp.switchVideo({
        url: $(this).text() + '.mp4',
    });
    dp.play();
});